POV-Ray : Newsgroups : povray.binaries.images : Caleidoscope : Caleidoscope Server Time
8 Aug 2024 18:14:30 EDT (-0400)
  Caleidoscope  
From: helge h
Date: 18 May 2005 20:00:01
Message: <web.428bd6baff2f06a594def9050@news.povray.org>
Just got this idea that I wanted to try, a simple caleidoscope. The code
shows use of patterns, but anything is possible of course. Enjoy!

Code:

#version 3.6;

global_settings {
 assumed_gamma 1.0
 max_trace_level 7
}

 camera {
 location -z*20
 direction 1.5*z
 right x*image_width/image_height
 look_at 0
}

light_source {
 <-10, 0, -10>
 color rgb <1,1,1>
}

#declare thePattern = texture {
 pigment {
  spiral2 6 // onion // cells // crackle // wood // agate
  color_map {
   [0.0 color rgb <1,1,0>]
   [0.5 color rgb <1,0,0>]
   [0.5 color rgb <0,1,1>]
   [1.0 color rgb <0,0,1>]
  }
  //turbulence 1
 }
 finish { diffuse 1 }
}

plane { -z, 0 texture { thePattern } }

union {
 box { <-2,1,-20>, <2,1.1,0> }
 box { <-2,1,-20>, <2,1.1,0> rotate z*120 }
 box { <-2,1,-20>, <2,1.1,0> rotate -z*120 }
 texture {
  pigment { color rgb <1,1,1> }
  finish {
   diffuse 0
   ambient 0
   reflection 1
  }
 }
 no_shadow
}


Post a reply to this message


Attachments:
Download 'caleidoscope.jpg' (206 KB)

Preview of image 'caleidoscope.jpg'
caleidoscope.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.